//
//  CountDownButton.h
//  CountdownButton
//
//  Created by adiljan on 16/9/2.
//  Copyright © 2016年 adiljan. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^tapHandler)(UIButton *sender);
@interface CountDownButton : UIButton


// 倒计时时间
@property (nonatomic, assign) NSInteger time;

// 按钮 倒计时完毕之后文字
@property (nonatomic, strong) NSString *btnTitle;

@property (nonatomic, strong) tapHandler handler;

+ (id)buttonWithType:(UIButtonType)buttonType frame:(CGRect)frame title:(NSString *)title image:(UIImage *)image handler:(tapHandler)handler;
@end
